import "./styles/index.scss";
import "element-plus/es/components/dialog/style/css";
import "./plugins/echart";

import * as ElementPlusIconsVue from "@element-plus/icons-vue";
import { createApp } from "vue";

import App from "./App.vue";
import router from "./router";
import { setTheme } from "./utils/theme";
import { createPinia } from "pinia";

const app = createApp(App);

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component);
}

// setTheme({ primary: "#FF9F43" }, false);

app.use(router);

const pinia = createPinia();
app.use(pinia);

app.mount("#app");
